﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 图片控件
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {

        }


      
        private void radioButton1_Enter(object sender, EventArgs e)
        {
           
        }

        private void radioButton1_Click(object sender, EventArgs e)
        {
            int i = int.Parse((sender as RadioButton).Tag.ToString());
            PictureBoxSizeMode pbs = (PictureBoxSizeMode)i;// ((int)(sender as RadioButton).Tag);
            pictureBox1.SizeMode = pbs;
        }
    }
}
